using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Outpatient.Doman.Hospitalization
{
    /// <summary>
    /// 病床号表
    /// </summary>
    [Table("Hospital_bed")]
    public class HospitalBed
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int HospitalId { get; set; }

        /// <summary>
        /// 病床编号
        /// </summary>
        [Required]
        [StringLength(20)]
        public string HospitalName { get; set; } = string.Empty;

        /// <summary>
        /// 逻辑删除、默认0未删除 1已删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
} 